package com.navi.loaddata.core.gpEntity;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Objects;

public class MppLayoutPnlDPK implements Serializable {
    private String layoutId;
    private int panelNo;

    @Column(name = "layout_id")
    @Id
    public String getLayoutId() {
        return layoutId;
    }

    public void setLayoutId(String layoutId) {
        this.layoutId = layoutId;
    }

    @Column(name = "panel_no")
    @Id
    public int getPanelNo() {
        return panelNo;
    }

    public void setPanelNo(int panelNo) {
        this.panelNo = panelNo;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MppLayoutPnlDPK that = (MppLayoutPnlDPK) o;
        return panelNo == that.panelNo &&
                Objects.equals(layoutId, that.layoutId);
    }

    @Override
    public int hashCode() {

        return Objects.hash(layoutId, panelNo);
    }
}
